package com.example.user1.exception;

import com.example.user1.enums.ErrorEnum;

public class BusinessException extends RuntimeException{
    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(ErrorEnum errorEnum, Object... parameters) {
        this(String.format(errorEnum.getMessage(), parameters));
    }
}
